package com.mingweicai.intergration.thread.pc;

public class BuffOn implements Runnable{

  private Car car;
  public BuffOn(Car car) {
    this.car = car;
  }

  @Override
  public void run() {
    while(!Thread.currentThread().isInterrupted()){
      try {
        // 等待涂蜡完成然后抛光
        car.waitForWax();
        car.buffed();
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
}